//
//  NSFormatter+shareInstance.h
//  One Night Flirt
//
//  Created by Jiang on 2017/12/18.
//  Copyright © 2017年 wudi360. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface NSDate (CSNSDateFormatter)
// 点语法block，nil 执行时会直接崩溃
- (NSString *)stringWithFormat:(NSString *)format;
@end

@interface NSString (CSNSDateFormatter)
- (NSDate *)dateWithFormat:(NSString *)format;
@end

@interface NSDateFormatter (ShareInstance)
+ (__kindof NSDateFormatter *)shareInstance;
+ (NSString *)stringWithFormat:(NSString *)dateFormat date:(NSDate *)date;
+ (NSDate *)dateWithFormat:(NSString *)format string:(NSString *)string;
@end
